dm: core: Add device children and sibling functions
authorSimon Glass <[email protected]>
Wed, 25 Mar 2015 18:21:57 +0000 (12:21 -0600)
committerSimon Glass <[email protected]>
Sat, 18 Apr 2015 17:11:19 +0000 (11:11 -0600)
commitc5785673bc6f4b8f2a4974979710a2c5c15eb063
tree664a8e740827abdd48b4b3959155052c2842d35b
parent206d4d2b4b30889678bb6b064002013a427b1501
dm: core: Add device children and sibling functions

Add some utility functions to check for children and for the last sibling in
a device's parent.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
drivers/core/device.c
include/dm/device.h